package org.vshe.improve.hibernate.recipes.domain;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

@Entity
@DiscriminatorValue(value="video")
public class VideoDisk extends Disk {
	
	private static final long serialVersionUID = -1106716821429679335L;
	
	private String director;
	private String language;
	
	public VideoDisk() {
		super();
	}

	public String getDirector() {
		return director;
	}

	public void setDirector(String director) {
		this.director = director;
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	@Override
	public String toString() {
		return "VideoDisk [director=" + director + ", language=" + language
				+ ", getId()=" + getId() + ", getName()=" + getName()
				+ ", getPrice()=" + getPrice() + "]";
	}

	
	
	
	
	
	
}
